package model

import "encoding/json"

type Ware struct {
	Id   uint
	Name string
	Desc string
	Time uint
}

type SKU struct {
	Id       uint
	Name     string
	WareId   uint
	Brand    string
	Material string
	Specs    string
	Color    string
	Ext      map[string]interface{}
	Desc     string
	Time     uint
}

func (sku *SKU) EncodeExt() string {
	s, _ := json.Marshal(sku.Ext)
	return string(s)
}
